﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GosWeb.Models.Db;
using GosWeb.Models.Form;

namespace GosWeb.Biz
{
    public class UserBiz
    {
        static UserBiz instance;
        GosDBContext db = new GosDBContext();

        //public bool ValidateUser(string userName, string password)
        //{
        //    User u = db.Users.Find(userName);
        //    if (u == null)
        //    {
        //        return false;
        //    }
        //    else
        //    {
        //        if (u.Password == password)
        //        {
        //            return true;
        //        }
        //        else
        //        {
        //            return false;
        //        }
        //    }
        //}

        public static UserBiz Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new UserBiz();
                }
                return instance;
            }
        }
    }
}